﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>@ViewBag.Title @ViewBag.IsAuthenticated - Fly社区</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="fly,layui,前端社区">
    <meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
    @Styles.Render("~/Content/reslayui")
</head>
<body>
    <div class="fly-header layui-bg-black">
        <div class="layui-container">
            <a class="fly-logo" href="/">
                <img src="~/Content/res/images/logo.png" alt="layui">
            </a>
            <ul class="layui-nav fly-nav layui-hide-xs">
                <li class="layui-nav-item layui-this">
                    <a href="/"><i class="iconfont icon-jiaoliu"></i>交流</a>
                </li>
                <li class="layui-nav-item">
                    <a href="case/case.html"><i class="iconfont icon-iconmingxinganli"></i>案例</a>
                </li>
                <li class="layui-nav-item">
                    <a href="http://www.layui.com/" target="_blank"><i class="iconfont icon-ui"></i>框架</a>
                </li>
            </ul>

            <ul class="layui-nav fly-nav-user">

                @if (!HttpContext.Current.User.Identity.IsAuthenticated)
                {
                <!-- 未登入的状态 -->
                    <li class="layui-nav-item">
                        <a class="iconfont icon-touxiang layui-hide-xs" href="@Url.Action("UserLogin","User")"></a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="@Url.Action("UserLogin","User")">登入</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="user/reg.html">注册</a>
                    </li>
                }
                else
                {
                <!-- 登入后的状态 -->
                    Html.RenderAction("HeaderForLogIn");
                }
            </ul>
        </div>
    </div>
    <div>
        @RenderBody()
    </div>
    <div class="fly-footer">
        <p><a href="http://fly.layui.com/" target="_blank">Fly社区</a> @DateTime.Now.ToString("yyyy") &copy; <a href="http://www.layui.com/" target="_blank">layui.com 出品</a></p>
        <p>
            <a href="http://fly.layui.com/jie/3147/" target="_blank">付费计划</a>
            <a href="http://www.layui.com/template/fly/" target="_blank">获取Fly社区模版</a>
            <a href="http://fly.layui.com/jie/2461/" target="_blank">微信公众号</a>
        </p>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/reslayui")
    <script>
        layui.config({
            base: "~/Content/res/mods/"
        }).use(['element'], function () {
            var $ = layui.$
                , element = layui.element
        });
    </script>
    @RenderSection("scripts", required: false)
</body>
</html>
